import { http } from '@/utils/http/axios';

/**
 * @description: 部门树列表
 */
export function allDeptTree(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDept/allDeptTree',
    method: 'POST',
    data:params,
  });
}
/**
 * @description: 新增部门
 */
export function saveDept(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDept/saveDept',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 编辑部门
 */
export function updateDept(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDept/updateDept',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}
/**
 * @description: 删除部门
 */
export function removeDept(params) {
  return http.request({
    url: '/moss-cloud-base/base/sysDept/removeDept',
    method: 'POST',
    data:params,
  }, {
    isTransformResponse: false,
  });
}

